package com.example.keli.ui.home.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Description:
 * Data：2019/4/15-11:03
 * Author: Allen
 */
public class TabPosition implements Parcelable {
    private int position;

    public TabPosition(int position) {
        this.position = position;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.position);
    }

    public TabPosition() {
    }

    protected TabPosition(Parcel in) {
        this.position = in.readInt();
    }

    public static final Creator<TabPosition> CREATOR = new Creator<TabPosition>() {
        @Override
        public TabPosition createFromParcel(Parcel source) {
            return new TabPosition(source);
        }

        @Override
        public TabPosition[] newArray(int size) {
            return new TabPosition[size];
        }
    };
}
